package net.apexcns.core;

import java.io.Serializable;

@SuppressWarnings("serial")
public class BaseVO implements Serializable, Cloneable { 

    protected int retCode		= 0;
    protected String retCodeStr	= null;
    protected String retMsg	= null;
    protected String retUrl	= null;
    protected String remoteIp	= null;

    protected String mode;

    // 페이징관련
    protected int pageRowCount		= 0;	// 데이타 전체 갯수
    protected int pageRowNumber		= 0;	// 데이타 번호
    protected int pageNumber	    	= 1;	// 페이지 번호
    protected int pageSize		= 30;	// 페이징 사이즈
	
    protected Throwable cause;

    public BaseVO() {
        super();
    }

	public Object clone() {
		try {
			return super.clone();
		} catch (CloneNotSupportedException e) {
			e.printStackTrace();
		}
		return null;
	}

	public void setRetCodeMsg(int retCode, String retMsg) {
		this.retCode = retCode;
		this.retMsg = retMsg;
	}

	// getter/setter

	public int getRetCode() {
		return retCode;
	}

	public String getMode() {
		return mode;
	}

	public void setMode(String mode) {
		this.mode = mode;
	}

	public void setRetCode(int retCode) {
		this.retCode = retCode;
	}

	public String getRetCodeStr() {
		return retCodeStr;
	}

	public void setRetCodeStr(String retCodeStr) {
		this.retCodeStr = retCodeStr;
	}

	public String getRetMsg() {
		return retMsg;
	}

	public void setRetMsg(String retMsg) {
		this.retMsg = retMsg;
	}

	public String getRetUrl() {
		return retUrl;
	}

	public void setRetUrl(String retUrl) {
		this.retUrl = retUrl;
	}

	public String getRemoteIp() {
		return remoteIp;
	}

	public void setRemoteIp(String remoteIp) {
		this.remoteIp = remoteIp;
	}

	public int getPageRowCount() {
		return pageRowCount;
	}

	public void setPageRowCount(int pageRowCount) {
		this.pageRowCount = pageRowCount;
	}

	public int getPageRowNumber() {
		return pageRowNumber;
	}

	public void setPageRowNumber(int pageRowNumber) {
		this.pageRowNumber = pageRowNumber;
	}

	public int getPageNumber() {
		return pageNumber;
	}

	public void setPageNumber(int pageNumber) {
		this.pageNumber = pageNumber;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public Throwable getCause() {
		return cause;
	}

	public void setCause(Throwable cause) {
		this.cause = cause;
	}
    
}
